<?php
namespace  app\designer\library;

use cubox\Database as Db;

class Database{
    
    protected Db $db;
    public function setDb(Db $db){
        
        
        $this->db = $db;
    }

    public function getTableList(){
        return [];
    }

    public function getTableInfo(string $table){
        return [];
    }

    public function getTableField(string $table){
        return [];
    }

    public function getTableComment(string $table){
        return '';
    }

    public function getDatabaseName(){
        $config = $this->db->getConfig();
        return $config['database'];
    }

    public function getCreateTableSQL(string $table){
        return '';
    }

    
}